package com.eascs.p2p.common.entity;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.NamedQuery;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

/**
 * 消息模板
 * @author long.wang
 *
 */
@Entity
@Table(name="p2p_msg_template")
@NamedQuery(name="MsgTemplateEntity.findAll", query="SELECT l FROM MsgTemplateEntity l")
public class MsgTemplateEntity implements Serializable {
	private static final long serialVersionUID = 5069199369913855182L;
	@Id
	private String id;
	
	@Column(name="template_type")
	private int templateType;
	
	@Column(name="template_name")
	private String templateName;
	
	@Column(name="template_code")
	private String templateCode;
	
	@Column(name="template_content")
	private String templateContent;
	
	@Column(name="times_per_hour")
	private int timesPerHour;
	
	@Column(name="times_per_day")
	private int timesPerDay;
	
	@Column(name="is_lock")
	private int isLock;
	
	@Temporal(TemporalType.TIMESTAMP)
	@Column(name="create_time")
	private Date createTime;
	
	@Temporal(TemporalType.TIMESTAMP)
	@Column(name="update_time")
	private Date updateTime;

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public int getTemplateType() {
		return templateType;
	}

	public void setTemplateType(int templateType) {
		this.templateType = templateType;
	}

	public String getTemplateName() {
		return templateName;
	}

	public void setTemplateName(String templateName) {
		this.templateName = templateName;
	}

	public String getTemplateCode() {
		return templateCode;
	}

	public void setTemplateCode(String templateCode) {
		this.templateCode = templateCode;
	}

	public String getTemplateContent() {
		return templateContent;
	}

	public void setTemplateContent(String templateContent) {
		this.templateContent = templateContent;
	}

	public int getTimesPerHour() {
		return timesPerHour;
	}

	public void setTimesPerHour(int timesPerHour) {
		this.timesPerHour = timesPerHour;
	}

	public int getTimesPerDay() {
		return timesPerDay;
	}

	public void setTimesPerDay(int timesPerDay) {
		this.timesPerDay = timesPerDay;
	}

	public int getIsLock() {
		return isLock;
	}

	public void setIsLock(int isLock) {
		this.isLock = isLock;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public Date getUpdateTime() {
		return updateTime;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}


	
}
